<?php
class ti_logging
{
	function init($ti)
	{
		foreach($ti->config['log.types'] as $key=>$value)
		{
			$ti->config['log.handles'][$key] = fopen($value,'a');
		}
	}
	
	function deinit()
	{
		global $ti;
		foreach($ti->config['log.handles'] as $key=>$value)
		{
			fclose($value);
		}
	}
}
?>